package com.evaluation_system.Repository;

import com.evaluation_system.pojo.entity.RequestNonce;
import org.springframework.data.jpa.repository.JpaRepository;

import java.time.LocalDateTime;

public interface NonceRepository extends JpaRepository<RequestNonce, Long> {
    boolean existsByNonce(String nonce);
    void deleteAllByCreatedAtBefore(LocalDateTime time);
}